import Request from  '@/utils/request'
import {API_CHANNEL_LIST,API_CHANNEL_SAVE,API_CHANNEL_UPDATE,API_CHANNEL_DEL} from "@/constants/api";

export function loadList(data) {
  return new Request({
    url: API_CHANNEL_LIST,
    method: 'post',
    data
  })
}

export function save(data) {
  return new Request({
    url: API_CHANNEL_SAVE,
    method: 'post',
    data
  })
}

export function update(data) {
  return new Request({
    url: API_CHANNEL_UPDATE,
    method: 'post',
    data
  })
}

export function del(id) {
  return new Request({
    url: API_CHANNEL_DEL+"/"+id,
    method: 'get'
  })
}

